package cn.south.campus.business.model.enums;

/**
 * <p>
 *
 * </p>
 *
 * @author chow
 * @since 2024/12/13 13:46
 */
public interface ExpressTakeEnums {

    Integer getCode();

    String getMsg();

    enum TakeStatus implements ExpressTakeEnums {
        //0待接单,1已接单,2已取件,3已送达,4已取消
        WAIT_TAKE(0, "待接单"),
        TAKE(1, "已接单"),
        TAKE_SEND(2, "已送达"),
        TAKE_CANCEL(3, "已取消"),
        TAKE_FINISH(4, "已结束"),
        ;
        private final Integer code;
        private final String msg;

        TakeStatus(Integer code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        @Override
        public Integer getCode() {
            return code;
        }

        @Override
        public String getMsg() {
            return msg;
        }
    }

    enum TakeApplyStatus implements ExpressTakeEnums {
        NO(0, "未申请"),
        APPLYING(1, "申请中"),
        PASS(2, "已通过"),
        REFUSE(3, "已拒绝"),
        ;
        private final Integer code;
        private final String msg;

        TakeApplyStatus(Integer code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        @Override
        public Integer getCode() {
            return code;
        }

        @Override
        public String getMsg() {
            return msg;
        }
    }
}
